# import random
#
# def fun():
#     a=random.randint(1,5)
#
# x=fun()
# guess=eval(input("请选择洞口："))
#
# if guess==x:
#     print("恭喜你抓到了")
# else:
#     print(f"明天再来，狐狸")

# class Pet:
#     name1 = "猫"
#     name2 = "狗"
#     def run(self):
#        pass




#
#
# class Dog():
#     def __init__(self,name,gender,energy,weight):
#         self.name = name
#         self.gender = gender
#         self.energy = energy
#         self.weight = weight
#         print(f'你好，我的名字是{self.name}，我是{self.gender}，很高兴成为你的电子宠物')
#     def sit(self):
#         print(self.name+'正在蹲下')
#     def roll_over(self):
#         print(self.name+'正在打滚')
#     def eat(self,food):
#         if food == 'hamberger':
#             self.energy += 10
#             self.weight +=5
#             print('汉堡包真好吃，但是别给我喂太多')
#         else:
#             self.energy += 2
#             print('好美味！')
# my_dog = Dog('卡尔','男孩',50,10)
# # my_dog.sit()
# # my_dog.roll_over()
# my_dog.eat('apple')
#
# # 任务2：让电子宠物吃东西？？？(食物为汉堡包，能量增加10，体重增加5；其余则只增加能量2)
# # 任务3：让电子宠物显示状态


# class Circle():
#     def __init__(self,r):
#         self.r=r
#         print(f'圆的半径为：{self.r}')
#     def get_perimeter(self):
#         print(f'圆的周长为：{2*self.r*3.14}')
#     def get_area(self):
#         print(f'圆的面积为：{self.r * self.r * 3.14}')
# r=Circle(eval(input('请输入圆的半径：')))  #类的属性
# r.get_perimeter() #类的方法调用
# r.get_area()  #类的方法调用


# class Robot:
#     def __init__(self,name1,name2):
#         self.name1=name1
#         self.name2=name2
#         print(f'你好，{name2},我是{name1},很高兴见到你！')
#     def hanaxi(self):
#         print('请告诉我你的愿望：')
#         a=input()
#         print(f'{a},{a},{a}(我认为你的愿望很重要！)')
# n1=input('你好主人，请给我取个名字: ')
# n2=input('你好主人，请告诉我您的名字: ')
# my_robot=Robot(n1,n2)
# my_robot.hanaxi()
print("爬虫结束")